import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import
helper
from '@/common/helper.js';
import {
	request
} from "@/request/index.js"
import regeneratorRuntime from '@/lib/runtime/runtime'
import header from '@/components/header/header.vue'
import uView from "uview-ui";

//分享
import share from '@/common/share.js'
Vue.mixin(share)
Vue.use(uView);
Vue.component('header', header) 

Vue.prototype.$http = request;
Vue.prototype.helper = helper;

Vue.config.productionTip = false;

App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif